<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>发布新闻</title>

<script type="text/javascript" src='<s:url value="/kindeditor/kindeditor-min.js" />' ></script>
<script type="text/javascript" src="/kindeditor/lang/zh_CN.js" ></script>
<script type="text/javascript" src="/kindeditor/plugins/code/prettify.js" ></script>
<script type="text/javascript">
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[name="content"]', {
			cssPath : '<s:url value="/kindeditor/plugins/code/prettify.css"/>',
			uploadJson : '<s:url value="/kindeditor/jsp/upload_json.jsp"/>',
			fileManagerJson : '<s:url value="/kindeditor/jsp/file_manager_json.jsp"/>',
			allowFileManager : true,
			allowImageUpload : true,
            autoHeightMode : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
			}
		});
		prettyPrint();
	});
	
</script>

</head>
<body>
	<form  method="post" action="new-save">
		<table width="800px" border="1px solid #ccc"  align="center"  >
			<tr align="center">
				<td>题目：
					<s:textfield name="title" ></s:textfield>
				</td>
			</tr>
			<tr>
				<td align="center">分类：
					<select name="newType" >
						<option value="1" selected="selected" >社会</option>
						<option value="2" >娱乐</option>
						<option value="3" >军事</option>
						<option value="4" >体育</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					<s:textarea name="content" style="width:798px;height:323px;visibility:hidden;"></s:textarea>
				</td>
			</tr>
			<tr>
			<td align="center">
				<input type="submit" name="button" value="提交" />
			</td>
		</tr>
		</table>
	</form>
</body>
</html>